package ch6;

import java.util.Scanner;

public class Zxf4 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入N:");
        int N=in.nextInt();
        System.out.println("1");
        System.out.println("1");
        int b=1;
        int a=1;
        int c=0;
        for (int i=1;i<=N-2;i++){
            c=a+b;
            a=b;
            b=c;
           // System.out.println("1");
           // System.out.println("1");
            System.out.println(c);
        }

    }
}
